package com.diors.game.engine.arpg.scene.entity;

import java.util.HashMap;
import java.util.Map;

import com.diors.game.engine.arpg.npc.entity.NpcEntity;
import com.diors.game.engine.arpg.object.PlayerBase;

/**
 * 分屏实体
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-23
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public class ScreenEntity 
{

	Map<Long, PlayerBase> players;
	
	Map<Long, NpcEntity> npcs;
	
	public ScreenEntity ()
	{
		npcs = new HashMap<Long, NpcEntity>();
	}
	
	public NpcEntity putNpc (NpcEntity npc)
	{
		return npcs.put(npc.getId(), npc);
	}

	public NpcEntity removeNpc (long npcID)
	{
		return npcs.remove(npcID);
	}
	
	

	public Map<Long, PlayerBase> getPlayers() {
		return players;
	}

	public Map<Long, NpcEntity> getNpcs() {
		return npcs;
	}
}
